﻿using System;
using System.Windows.Forms;

namespace PlaxoSyncWM {
    internal static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static Settings settings;

        [MTAThread]
        private static void Main() {
            CreateMobileContactsFile();
            settings = new Settings();
            if (!settings.Exist())
                Application.Run(new MainForm());
            else
                Application.Run(new SyncForm());
        }

        private static void CreateMobileContactsFile() {
            MobileContactsFile mc = new MobileContactsFile();
            if (!mc.mobileContactsFileExists())
                mc.create();
        }
    }
}